

<table class="layui-table">
  <colgroup>

	<col >
	<col >
	<col >
	<col >
	<col >
	<col >
	<col >
	<col >
	<col >
	<col width="300" >
 


  </colgroup>
  <thead>
    <tr>
      <th>所属客户</th>
      <th>开始日期</th>
      <th>结束日期</th>
      <th>合同金额</th>
      <th>项目金额</th>
      <th>项目利润</th>
      <th>项目类型</th>
      <th>介绍人</th>
      <th>状态</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>








      <tr>
      <td><?echo $unit_detail['name']?></td>
      <td><?echo substr($case['startdate'],0,10)?></td>
	  <td><?echo substr($case['enddate'],0,10)?> </td>
	  <td><?echo $case['contract_sum']?></td>
	  <td><?echo $case['sum']?></td>


	  <td>
          <? echo $case['profit'] ?>  【  <?echo round( $case['profit']/$case['sum'],3)*100?>% 】
      </td>



          <td><?echo $case['type']?></td>

<? $agent = select_one_line_all_items($table_Prefix."member","nid ='".$case['agent']."'"); ?>
<td>
    <a  target="_blank" href="../member/detail-statistic.php?&nid=<?echo $case['agent']?>">
    <?echo $agent['name']?>
    </a>
</td>



	  <td><?echo $case['status']?></td>
	  <td>


<a href="detail-edit.php?nav-itemed=<?echo $system_part?>&nid=<? echo $case['nid']?>"
   class="layui-btn layui-btn-primary layui-btn-xs" >
  <i class="layui-icon">&#xe642;</i>修改
</a>


<a href="javascript:void(0)"
onclick="popupBox(<?php echo $case['nid']?>)"
class="delete layui-btn layui-btn-primary layui-btn-xs" >
<i class="layui-icon">&#xe640;</i> 删除 </a>



<span class="layui-btn layui-btn-xs" onclick="show_iframe('modules/mod-finance-add.php?unit=<?echo $detail['nid']?>&case=<?echo $case['nid']?>','财务信息')" >收支</span>
      </td>

    </tr>



  </tbody>
</table>


